#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
	int i, j, k;
	int n;
	scanf("%d", &n);
	//string str="ABC 
	char ch = 'A';

	for (i = 1; i <= n; i++)
	{
		for (j = 1; j <= n - i; j++)
			printf(" ");
		for (k = 1; k <= 2 * i - 1; k++)
		{
			printf("%c", ch);
		}
		ch++;
		printf("\n");
	}
	return 0;
}
/*#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main()
{
	string str = "ABC";
	/*while(ch<='C')
	{
		cout<<ch<<endl;
		ch++;
	}

	for (int i = 0; i < str.size(); i++)
	{
		cout << str[i] << " ";
	}
	return 0;
}*/